package com.xiangxiao.rpan.authority.dao;

import com.xiangxiao.rpan.authority.dto.MenuQueryDto;
import com.xiangxiao.rpan.authority.model.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Projectname: MenuMapper
 * @Author: xiangxiao
 * @Email: 573768011@qq.com
 * @Data:2023/4/13 1:42
 */
public interface MenuMapper {
  /**
   * 获取菜单树
   *
   * @return
   */
  List<MenuQueryDto> findAllMenuTree();

  /**
   * 获取模块下单菜单
   *
   * @param menuIds
   * @return
   */
  List<Menu> findListMenuByMenuIds(@Param("menuIds") List<Long> menuIds);
}
